import Vue from 'vue'
import ElementUI from 'element-ui'
import App from './App.vue'
import router from './router'
import store from './store'
import { Loading, MessageBox, Message, Notification } from 'element-ui'
Vue.prototype.$loading = Loading.service
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$notify = Notification
Vue.prototype.$message = Message
Vue.prototype.$Bus = new Vue()
// 导入组件
import registComponents from '@/plugins/components'
registComponents(Vue)
Vue.config.productionTip = false
Vue.use(ElementUI, { size: 'medium', zIndex: 3000 })
// import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/element-theme/theme/index.css'
import '@/assets/style/common.css'
import '@/assets/style/pageStyle.scss'
import '@/assets/iconfont/iconfont.css'
// 权限验证
import './permission.js'
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
